<div class="container"  [ngStyle] = "{height:sliderHeight}">
  <div class="image-slider" (scroll)="handleScroll($event)" #imageSlider>
    <img #img *ngFor= "let slider of sliders" [src]="slider.imgUrl" alt="" srcset="">
  </div>
  <div class="nav-section">
    <span *ngFor= "let slider of sliders; let index = index" class="slide-button"
    [ngClass]="{'slider-active':index === sekectedIndex}">
    </span>
  </div>
</div>